package com.shy.listener;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.annotation.Configuration;

/**
 * 通过注解添加监听器
 */
@Configuration
public class MyAnnotationListener implements ApplicationListener<ApplicationEvent> {
    @Override
    public void onApplicationEvent(ApplicationEvent event) {
        System.out.println(">>>>>>> MyAnnotationListener >>>>>> : " + event);
    }
}
